<!--
 * @Author: your name
 * @Date: 2021-08-20 17:22:13
 * @LastEditTime: 2021-08-20 19:59:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \系统学习\VueProject\vue02\supermall\src\components\content\checkButton\CheckButton.vue
-->
<template>
  <div class="check-button" :class="{check: isChecked}">
  <img src = "~assets/img/cart/tick.svg">
  </div>
</template>

<script>
export default {
  name: "CheckButton",
  data() {
    return {

    }
  },
  props: {
    isChecked: {
      type: Boolean,
      default: false
    }
  },
}
</script>

<style scoped>
  .check-button {
    border-radius: 50%;
    border: 1px solid #aaa;
    background: #fff;
  }

  .check {
    border-color: red;
    background: red;
  }

</style>
